| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** |
||
| 32 | .directive('ngEnter', function () { |
||
| 33 | return function (scope, element, attrs) { |
||
| 34 | element.bind("keydown keypress", function (event) { |
||
| 35 | if (event.which === 13) { |
||
| 36 | scope.$apply(function () { |
||
| 37 | scope.$eval(attrs.ngEnter); |
||
| 38 | }); |
||
| 39 | |||
| 40 | event.preventDefault(); |
||
| 41 | } |
||
| 42 | }); |
||
| 43 | }; |
||
| 44 | }); |
||
| 45 | }()); |